<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>员工添加</title>
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/EmployeeAdd.js"></script>
</head>
<body>
	<nav class="navbar navbar-default">
	  <div class="container-fluid">
	    <!-- Brand and toggle get grouped for better mobile display -->
	    <div class="navbar-header">
	      <a class="navbar-brand" href="#">耀耀员工管理系统</a>
	    </div>
	
	    <!-- Collect the nav links, forms, and other content for toggling -->
	    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
	      <ul class="nav navbar-nav navbar-right">
	        <li><a href="#">欢迎${requestScope.username }登陆~</a></li>
	        <li><a href="#">注销</a></li>
	      </ul>
	    </div><!-- /.navbar-collapse -->
	  </div><!-- /.container-fluid -->
	</nav>
	<div class="row">
	  <div class="col-md-3">
	    <%@include file="FunctionList.jsp" %>
	  </div>
	  <div class="col-md-9">
		<div class="panel panel-default">
		  <div class="panel-heading">添加员工</div>
		  <div class="panel-body" style="margin-left:50px;margin-right:50px">
		  
		    <c:if test="${requestScope.flag!=null }">
	          <c:if test="${requestScope.flag==true }">
	            <div class="alert alert-success" role="alert" style="text-align:center">添加成功</div>
	          </c:if>
	        </c:if>
		  
			<form class="form-horizontal" id="form" action="addEmployee" method="post" enctype="multipart/form-data">
			  <div class="form-group">
			    <label for="empname" class="col-sm-2 control-label">姓名</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" id="empname" name="empname" placeholder="请输入员工姓名">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="empage" class="col-sm-2 control-label">年龄</label>
			    <div class="col-sm-10">
			      <input type="number" class="form-control" id="empage" name="empage" placeholder="请输入员工年龄">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="empsex" class="col-sm-2 control-label">性别</label>
			    <div class="col-sm-10">
			      <input type="radio" id="empsexm" name="empsex" value=1 checked="checked"><span>&nbsp</span>男<span>&nbsp</span>
			      <input type="radio" id="empsexf" name="empsex" value=0><span>&nbsp</span>女
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="empsalary" class="col-sm-2 control-label">工资</label>
			    <div class="col-sm-10">
			      <input type="number" class="form-control" id="empsalary" name="empsalary" placeholder="请输入员工工资">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="empbirthday" class="col-sm-2 control-label">生日</label>
			    <div class="col-sm-10">
			      <input type="date" class="form-control" id="empbirthday">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="empdept" class="col-sm-2 control-label">部门 </label>
			    <div class="col-sm-10">
			      <select class="form-control" id="empdept" name="empdept">
			        <option value=-1>--请选择--</option>
			        <c:forEach items="${requestScope.deptlist }" var="item">
			        <option value="${item.id }">${item.name }</option>
			        </c:forEach>
			      </select>
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="empphoto" class="col-sm-2 control-label">证件照</label>
			    <div class="col-sm-10">
			      <input type="file" class="form-control" id="empphoto" name="empphoto">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="empdetail" class="col-sm-2 control-label">备注 </label>
			    <div class="col-sm-10">
			      <textarea class="form-control" rows="3" id="empdetail" name="empdetail" placeholder="请输入员工描述"></textarea>
			    </div>
			  </div>
			  <div class="form-group">
			    <div class="col-md-5"></div>
			    <div class="col-md-2"><input type="button" class="btn btn-primary btn-block" id="submitbtn" value="添加"></div>
			    <div class="col-md-5"></div>
			  </div>
			</form>
			
			
		  </div>
		</div>	    
	  </div>
	</div>
</body>
</html>